package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.BeautyCare;
import com.example.demo.mapper.BeautyCareMapper;
import com.example.demo.service.IBeautyCareService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 美容护理表 服务实现类
 * </p>
 *
 * @author Mr.wyy
 * @since 2024-06-03
 */
@Service
public class BeautyCareServiceImpl extends ServiceImpl<BeautyCareMapper, BeautyCare> implements IBeautyCareService {

    @Resource

    private BeautyCareMapper beautyCareMapper;
    @Override
    public boolean addBeautyCare(BeautyCare beautyCare) {
        if (beautyCareMapper.addBeautyCare(beautyCare) ==1) {
            return true;
        }
        return false;
    }

    @Override
    public List<BeautyCare> selectBeautyCareAll() {
        return beautyCareMapper.selectBeautyCareAll();
    }

    @Override
    public BeautyCare selectBeautyCareByBcId(Integer bcId) {
        return beautyCareMapper.selectBeautyCareByBcId(bcId);
    }

    @Override
    public int deleteBeautyCareById(Integer bcId) {
        return beautyCareMapper.deleteBeautyCareById(bcId);
    }

}
